{extend name="index/index" /}
{block name="main"}
  <!--bbs cate-->
  <!--sub bar-->
  <script type="text/javascript" charset="utf-8" src="/static/bjq/js/ueditor.config.js"></script>
  <script type="text/javascript" charset="utf-8" src="/static/bjq/js/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
  <script type="text/javascript" charset="utf-8" src="/static//bjq/js/zh-cn.js"></script>
  <div class="SubBBS">
   <div class="w1000 subBar">
    <div >
     <div>
     <div class="ComonPart" style="line-height:60px">
    当前位置： 
    <a href="/index">宠物社区</a>&nbsp;&gt;&nbsp;
    <a href="/index/Section/index?id={$res['id']}">{$res['name']}</a>&nbsp;&gt;&nbsp;
    <span><a href="">{$list.title}</a></span>
   </div>
      
     </div>
    </div>
   </div>
  </div>
  <!--/sub bar-->
  <div class="iclear M15"></div>
  <!--bbs main-->
  <div class="w1000 BbsMain">
   
   <div class="iclear M20"></div>
   <!--sDetail-->
   <div class="sDetail">
  
    <!--page-->
    <div class="sF_rightP">
     <div class="sF_rpleft">
      <a href="/index/Section/post?sid={$res['id']}" title="发帖"></a>
     </div>
    </div>
    <!--page-->
    <div class="iclear M10"></div>
    <!--sD_DTit-->
    <div class="sD_DTit">
     <h1>{$list.title}</h1>
     <div class="sD_DTr">
      <div class="DT_pn">
       <!--
                    -->
      </div>
      
      <div class="DT_fn">
       <span><p>{$list.check}</p>查看</span>
       <span class="DT_fnline"><p>{$list.count}</p>回复</span>
      </div>
     </div>
    </div>
    <!--/sD_DTit-->
    <div class="iclear"></div>
    <!--detail-->
    <!-- 帖子列表 -->
    <div class="sD_Detail">
     <input type="hidden" name="pid" value="9207281" />
     <!--sD_Dleft-->
     <div class="sD_Dleft">
      <div class="sD_lbox" id="box">
       <a href="" style="display:none;">定位</a>
       <a name="9207281" id="9207281"></a>
       <h2><a href="" target="_blank">{$user.nickname}</a></h2>
       <div class="sD_limg" tval="14700804">
      
        <a href="" target="_blank"> 
        <img src="/uploads/{$user.icon}" alt="{$user.nickname}" width="125px;" height="125px;" data-bd-imgshare-binded="1" /></a>
       </div>


       <div class="sD_li">
        <span>发帖：<a href="" target="_blank">{$user.ft_count}</a></span>


        <span>宠日志：<a href="" target="_blank">{$user.diary}</a></span>
        <span>照片：<a href="" target="_blank">{$user.photo}</a></span>
       </div>
       <div class="iclear"></div>
       
      </div>
      <!--l show-->
      <div class='sD_lShow' style="top: 34px; left: 14px; display: none; " id='info' >
          <div class="sD_limg" tval="14700804">

        <img src="/uploads/{$user.icon}" alt="{$user.nickname}" width="125px;" height="125px;" data-bd-imgshare-binded="1" />

       </div>
       <div class="lShow_left">

       {if condition="$user.id eq $Think.session.user.id"} <a href="{:url('index/Personal/index')}">
                    {else /} <a href="{:url('index/PersonalOthers/index',['id'=>$user.id])}" target="_blank">
                    {/if}访问Ta的主页</a>
       </div>
       <div class="lShow_right">
        <h3>{$user.nickname}<em class="isex_man"></em></h3>
        <div class="lshow_box">
         <span class="w_90">地区:{$user.province}</span>

         <div class="iclear"></div>
        </div>
        <p>注册时间：{$user.regtime|date="Y-m-d",###}</p>
       </div>
      </div>

      <!--/l show-->
     </div>
     <div class="sD_Dright">
      <div class="sD_DrBox">
       <div class="sD_rTit">
        <em>1#</em>发表于{$list.pubdate|date="Y-m-d H:i:s",###}&nbsp;
       </div>
       <div class="sd_rText">
        {$list.content}
       </div>
       <div class="iclear M30"></div>
       <!-- 投票选项 -->
       <div class="sd_rText">
        <div class="share">
         <!-- Baidu Button BEGIN -->
         <div class="bdsharebuttonbox bdshare-button-style0-16" data-bd-bind="1488007484400">
          <a href="http://bbs.boqii.com/viewthread-3462742.html#" class="bds_more" data-cmd="more"></a>
          <a href="http://bbs.boqii.com/viewthread-3462742.html#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
          <a href="http://bbs.boqii.com/viewthread-3462742.html#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
          <a href="http://bbs.boqii.com/viewthread-3462742.html#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
          <a href="http://bbs.boqii.com/viewthread-3462742.html#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
          <a href="http://bbs.boqii.com/viewthread-3462742.html#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
         </div>
         <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
         <!-- Baidu Button END -->
        </div>
       </div>
       <div class="iclear M30"></div>
       <!-- 帖子评分记录 -->
       <div class="sr_title"></div>
       <div class="sr_list">
        <ul></ul>
       </div>
       <!-- 主题帖评分 -->
       <!-- 主题帖评分END -->
       <!--/about title-->
       <div class="iclear M30"></div>
       <div class="sD_rsign">
        {$user.sightml}
       </div>

       <!--sD_rshop 商城最新购物记录-->
       <div class="sD_rshop">
        <div class="tempWrap" style="overflow:hidden; position:relative; height:75px">
         <div class="ulWrap" style="height: 225px; position: relative; padding: 0px; margin: 0px; top: -115px;">
          <ul style="height: 75px;"></ul>
          <ul style="height: 75px;"></ul>
          <ul style="height: 75px;"></ul>
         </div>
        </div>
       </div>
       {if condition="($Think.session.user.id == $user.id)"}
       <div style="float:right"><a href="/index/Content/del?art_id={$list.id}">删除</a></div>
       {else /}
       {/if}
      </div>
     </div>
    </div>
   
   
   
    <!--/sF_rightS-->
   </div>
   <!--/sDetail-->


  <!--/bbs main-->
  {volist name="reply" id="vo"}
  <div class="sDetail">
     <div class="sD_Detail odd_div"  style="width:1028px; margin:auto;">
      <div class="sD_Dleft">
      <div class="sD_lbox">
       <a href="" style="display:none;">定位</a>
       <a name="9207285" id="9207285"></a>
       <h2><a href="" target="_blank"></a>{$vo.nickname}</h2>
       <div class="sD_lim" >
        <a href="" target="_blank"><img src="/uploads/{$vo.icon}" alt="{$vo.nickname}" width="125px;" height="125px;" data-bd-imgshare-binded="1" /></a>
       </div>
     
       <div class="sD_li">
        <span>发帖：<a href="" target="_blank">{$vo.ft_count}</a></span>
   
    
        <span>宠日志：<a href="" target="_blank">{$vo.diary}</a></span>
     
        <span>照片：<a href="" target="_blank">{$vo.photo}</a></span>
       </div>
       <div class="iclear"></div>
        <div class="lShow_left" style="margin:10px">
        {if condition="$vo.use_id eq $Think.session.user.id"} 
        <a href="{:url('index/Personal/index')}">
        {else /} <a href="{:url('index/PersonalOthers/index',['id'=>$vo.use_id])}" target="_blank">
        {/if}访问Ta的主页</a>
       </div>
      </div>
      <!--l show-->
      
      </div>
     <div class="sD_Dright">
      <div class="sD_DrBox">
       <div class="sD_rTit">
        <em>
        {$i+1}#
        </em>发表于{$vo.time} &nbsp;
       </div>
       <div class="sd_rText">
        <!-- 是否回帖只允许作者可见主题 -->
        <p>{$vo.content}<br/></p>
       </div>
       <div class="iclear M30"></div>
       </div>

       <div class="iclear M30"></div>
       <div class="sD_rsign">
       {$vo.sightml}
       </div>
       </div>
       </div>
      {if condition="($Think.session.user.id == $vo.use_id)"}
      <div style="float:right"><a href="/index/Content/delreply?id={$vo.id}&&aid={$vo.art_id}">删除</a></div>
      {else /} 
      {/if}
      </div>
      
  {/volist}
  
  <div class="iclear H25"></div>


  <div style="width:1000px; margin:auto;">
   <div>
    <form action="/index/Content/reply">

   
    <script id="editor" type="text/plain" name='content' style="width:1000px;height:300px; margin:auto;"></script>
</div>

<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');


    function isFocus(e){
        alert(UE.getEditor('editor').isFocus());
        UE.dom.domUtils.preventDefault(e)
    }
    function setblur(e){
        UE.getEditor('editor').blur();
        UE.dom.domUtils.preventDefault(e)
    }
    function insertHtml() {
        var value = prompt('插入html代码', '');
        UE.getEditor('editor').execCommand('insertHtml', value)
    }
    function createEditor() {
        enableBtn();
        UE.getEditor('editor');
    }
    function getAllHtml() {
        alert(UE.getEditor('editor').getAllHtml())
    }
    function getContent() {
        var arr = [];
        arr.push("使用editor.getContent()方法可以获得编辑器的内容");
        arr.push("内容为：");
        arr.push(UE.getEditor('editor').getContent());
        alert(arr.join("\n"));
    }
    function getPlainTxt() {
        var arr = [];
        arr.push("使用editor.getPlainTxt()方法可以获得编辑器的带格式的纯文本内容");
        arr.push("内容为：");
        arr.push(UE.getEditor('editor').getPlainTxt());
        alert(arr.join('\n'))
    }
    function setContent(isAppendTo) {
        var arr = [];
        arr.push("使用editor.setContent('欢迎使用ueditor')方法可以设置编辑器的内容");
        UE.getEditor('editor').setContent('欢迎使用ueditor', isAppendTo);
        alert(arr.join("\n"));
    }
    function setDisabled() {
        UE.getEditor('editor').setDisabled('fullscreen');
        disableBtn("enable");
    }

    function setEnabled() {
        UE.getEditor('editor').setEnabled();
        enableBtn();
    }

    function getText() {
        //当你点击按钮时编辑区域已经失去了焦点，如果直接用getText将不会得到内容，所以要在选回来，然后取得内容
        var range = UE.getEditor('editor').selection.getRange();
        range.select();
        var txt = UE.getEditor('editor').selection.getText();
        alert(txt)
    }

    function getContentTxt() {
        var arr = [];
        arr.push("使用editor.getContentTxt()方法可以获得编辑器的纯文本内容");
        arr.push("编辑器的纯文本内容为：");
        arr.push(UE.getEditor('editor').getContentTxt());
        alert(arr.join("\n"));
    }
    function hasContent() {
        var arr = [];
        arr.push("使用editor.hasContents()方法判断编辑器里是否有内容");
        arr.push("判断结果为：");
        arr.push(UE.getEditor('editor').hasContents());
        alert(arr.join("\n"));
    }
    function setFocus() {
        UE.getEditor('editor').focus();
    }
    function deleteEditor() {
        disableBtn();
        UE.getEditor('editor').destroy();
    }
    function disableBtn(str) {
        var div = document.getElementById('btns');
        var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
        for (var i = 0, btn; btn = btns[i++];) {
            if (btn.id == str) {
                UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
            } else {
                btn.setAttribute("disabled", "true");
            }
        }
    }
    function enableBtn() {
        var div = document.getElementById('btns');
        var btns = UE.dom.domUtils.getElementsByTagName(div, "button");
        for (var i = 0, btn; btn = btns[i++];) {
            UE.dom.domUtils.removeAttributes(btn, ["disabled"]);
        }
    }

    function getLocalData () {
        alert(UE.getEditor('editor').execCommand( "getlocaldata" ));
    }

    function clearLocalData () {
        UE.getEditor('editor').execCommand( "clearlocaldata" );
        alert("已清空草稿箱")
    }
</script>
      
      <div class="s_SBbox" style="float:right">
       <input type="submit" value="" class="sub_ico sub_answar" id="btnReply" />
       <input type="hidden" value="{$Think.session.user.id}"  name="uid" />
       <input type="hidden" value="{$res['id']}"  name="sid" />
       <input type="hidden" value="{$list.id}"  name="aid" />
      </div>
     </div>
    </form>
    </div>
  <!--Footer-->
{/block}